import 'package:flutter_fronter_service/generated/json/base/json_field.dart';
import 'package:flutter_fronter_service/generated/json/address_entity.g.dart';
import 'dart:convert';
export 'package:flutter_fronter_service/generated/json/address_entity.g.dart';

@JsonSerializable()
class AddressEntity {
	late int id = 0;
	late String contactName = '';
	late int contactSex = 0;
	late String contactTel = '';
	late String province = '';
	late String city = '';
	late String district = '';
	late String address = '';
	late bool defaultAddress = false;

	AddressEntity();

	factory AddressEntity.fromJson(Map<String, dynamic> json) => $AddressEntityFromJson(json);

	Map<String, dynamic> toJson() => $AddressEntityToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}